package Socketserver.Socket;
import Public.SocketResult;

import java.io.IOException;

public interface SocketServerAbstract {
    // 接收文件相关（不改名，仅调整返回值和参数）
    public boolean ServerSocket_CREATE_Socket() throws IOException;
    public SocketResult ServerSocket_INPUT_STRING() throws IOException;
    public SocketResult ServerSocket_INPUT_FILE() throws IOException; // data 为文件路径
    public SocketResult ServerSocket_INPUT(String receiveType) throws IOException; // 新增接收类型参数
    public boolean ServerSocket_OUTPUT() throws IOException;
    public boolean ServerSocket_CLOSE() throws IOException;

    // 输出文件相关（不改名，调整返回值）
    public boolean ServerSocket_OUTPUT_CREATE_Socket() throws IOException;
    public SocketResult ServerSocket_OUTPUT_OUTPUT_String() throws IOException;
    public boolean ServerSocket_OUTPUT_OUTPUT_String_langege() throws IOException;
    public boolean ServerSocket_OUTPUT_OUTPUT_download() throws IOException;
    public SocketResult ServerSocket_OUTPUT_OUTPUT() throws IOException;
    public boolean ServerSocket_OUTPUT_INPUT() throws IOException;
    public boolean ServerSocket_OUTPUT_CLOSE() throws IOException;

    // 新增业务衔接方法（适配 AllMedium 权限过滤）
    public SocketResult ServerSocket_INPUT_USERID() throws IOException; // 接收用户ID
    public SocketResult ServerSocket_OUTPUT_USER_AUTH(String authMsg) throws IOException; // 返回权限校验结果
}